﻿using TrafficWatcher.Infrastructure;

namespace TrafficWatcher.ViewModels.Helpers
{
    public class ShutdownService
    {
        public ShutdownService()
        {
            ViewModelLocator.MainStatic.ShutdownRequested += (_, __) => EnvironmentContext.ShutdownTheApplication();
        }

        public IEnvironmentContext EnvironmentContext { get; set; }
    }
}
